using System;
using DeclarativeTest.Core;
using DeclarativeTest.Core.Attributes;

namespace DeclarativeTest.Actions
{
	/// <summary>
	/// Uses <see cref="Console.WriteLine()" for text output/>
	/// </summary>
	[Action( Namespaces.BASE_ACTIONS )]
	public class Trace : IAction
	{
		/// <summary>
		/// Text to output
		/// </summary>
		public string Text { get; set; }

		#region IAction Members

		/// <summary>
		/// Runs action.
		/// </summary>
		/// <param name="context">Execution context.</param>
		public void Run( RunContext context )
		{
			Console.WriteLine( Text );
		}

		#endregion
	}
}